﻿using AutoMapper;

namespace CobraCms.MsSqlContentRepository.Data
{    
    public partial class ContentNode : IConvertable<ContentNode, Core.Content.ContentNode>
    {
        static ContentNode()
        {
            CreateMappings();
        }

        #region Implementation of IConvertable<CmsSessionEntity,CmsSession>

        public PhosphorConverter<ContentNode, Core.Content.ContentNode> Converter
        {
            get { return new PhosphorConverter<ContentNode, Core.Content.ContentNode>(this); }
        }

        #endregion

        internal static void CreateMappings()
        {
            Mapper.CreateMap<Core.Content.ContentNode, ContentNode>();

            Mapper.CreateMap<ContentNode, Core.Content.ContentNode>();
        }
    }

}
